<?php
/**  
  * 标签云
  *  
  * @package custom  
  */ 
$this->need('header.php'); ?>
	<article id="main">	
		<div id="top"></div>
		<section id="reading" class="post">
			<div id="post-tag">
				<div class="title"><?php _e('标签云'); ?></div>
				<div class="tags">
					<?php Typecho_Widget::widget('Widget_Metas_Tag_Cloud')->to($tags); ?>
					<?php if($tags->have()): ?>
						<?php while ($tags->next()): ?>
							<a style="color:rgb(<?php echo(mt_rand(0,255)); ?>,<?php echo(mt_rand(0,255)); ?>,<?php echo(mt_rand(0,255)); ?>)" href="<?php $tags->permalink();?>" title="有<?php $tags->count(); ?>篇文章使用<?php $tags->name(); ?>标签"><?php $tags->name(); ?></a>
						<?php endwhile; ?>
				<?php endif; ?>
				</div>
			</div>
			<div class="clear"></div>
		</section>
		<?php $this->need('sidebar.php'); ?>
		<div id="bottom"></div>
	</article><!-- content END -->
   	<?php $this->need('footer.php'); ?>
